#ifndef FRIENDSERVICE_H
#define FRIENDSERVICE_H

#include <QObject>
#include "protocol.h"
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <memory>
class TcpUserConnect;
class FriendService : public QObject
{
    Q_OBJECT
public:
    explicit FriendService(QObject *parent = nullptr);

    void _SenderDoAddFriend(std::shared_ptr<PDU> recvPDU,TcpUserConnect* tcpUser);

    void _doPullAddFriendRequest(std::shared_ptr<PDU> recvPDU,TcpUserConnect* tcpUser);

    void _doSetFriendRespond(std::shared_ptr<PDU> recvPDU,TcpUserConnect* tcpUser);

    void _doPullFriendListRespond(std::shared_ptr<PDU> recvPDU,TcpUserConnect* tcpUser);


private:
    void NoticeTagFriendRequest(QString SendUser,QString TagUser);


    QJsonObject PackBodyInfo(QString FaceUser,QString Info, QString SelfUser);
signals:

};

#endif // FRIENDSERVICE_H
